package caip2022p.rcv4;

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        
        // Read n and m
        String[] parts = scanner.nextLine().split(" ");
        String n = parts[0];
        String m = parts[1];
        
        String str1 = scanner.nextLine();
        String str2 = m;
        
        for (int i = 0; i < str1.length(); i++) {
            char currentChar = str1.charAt(i);
            char lastM = str2.charAt(str2.length() - 1);
            
            if (currentChar == '0') {
                if (Character.isLowerCase(lastM)) {
                    str2 += Character.toUpperCase(lastM);
                } else {
                    str2 += Character.toLowerCase(lastM);
                }
            } else {
                if (Character.isLowerCase(lastM) && lastM != 'a') {
                    str2 += (char)(lastM - 1);
                } else if (Character.isUpperCase(lastM) && lastM != 'Z') {
                    str2 += (char)(lastM + 1);
                }
                // else continue (do nothing)
            }
        }
        
        System.out.println(str2);
        scanner.close();
    }
}
